Fix broken server when send Chinese characters.