Silence deprecation warning about invalid locales