Fix encoding for importing languages and country codes