Handle perls built without locale support
Merge pull request #7 from Hugmeir/master

Handle perls built without locale support