[debug] Remove "unprintable char 0" in debug messages

Avoid spamming the log when an application prints NUL bytes into
its output (like e.g. pkcon does sometimes).