common,tools: Always escape newlines when escaping data.
* common/stringhelp.c (do_percent_escape): Always escape newlines. * tools/gpgconf-comp.c (gc_percent_escape): Likewise.
Newlines always pose a problem for a line-based communication format.
- GnuPG-bug-id: T2387
- Signed-off-by: Justus Winter <justus@g10code.com>