fix charset problems