correctly set locale