fix handling of non utf8 log entries