Fixing how locale is guessed.