Handle systems with no locales

Technically this affects any perl compiled with -Ui_locale, but realistically, only affects Android; with this commit, utf8::all passes all tests there.