Move codec setting after application initialization.
Set text codec also for locale and tr.