LocaleUtils: minor code fixes