properly set the locale