Fixed a character encoding bug