resolve character encoding issues