normalizing locales using new nowmalizeLocale() method

Fixes #1069