properly set locale