fixed unicode error for some locales