properly handle unexisting locale