fix quote character encoding bug