Fix UTF-8 log scrubbing