Handle systems without locales

Technically this is for any perl compiled with -Ud_locconv -Ud_setlocale -Ud_setlocale_r -Ui_locale, but realistically it's just for Android.