Fixes character encoding issues