Fixed string encoding errors