Handle systems without locales
Merge pull request #1 from Hugmeir/master

Handle systems without locales