fix charset usage