Fix csv character encoding bug