Fixes encoding issues