fixing undefined locale on CLI request