Fix a bug where Chinese was unable to save to chat.txt