normalizing locales
Merge pull request #1197 from pdehaan/issue-1069-normalize-locale

normalizing locales using new nowmalizeLocale() method