fixed character encoding bug