Adding  helper function
Merge pull request #70 from pdehaan/issue-69

Adding `normalizeLocale` helper function