locale functions handles invalid locale by returning nil/false