protect against invalid byte sequences in UTF8 when formatting log lines