utf encoding fixes