Adding `normalizeLocale` helper function

WITH TESTS, GUYS!!! TESTS!!!

Fixes #69