Encode chinese in log messages.