Fixed character encoding bug