decode log messages to UTF8 using 'replace' handler, to avoid UnicodeDecodeError
test all log function w.r.t. UTF8 decoding, including deprecated