make locale finding IE compatible