Fix UTF-8 encoding for log messages