Minor fixes for UTF-8 and localization init.