fix the utf8 encoding bug