Fix error with locales parsing

Fixing issue [https://github.com/travis-ci/travis-assets/issues/28]