Fixes some character encoding issues.