character encoding bug