Fix UTF encoding bug