Make locale management a bit looser to fit gettext's idiosyncrasies.