escape binary nulls in log files