character encoding fix