Handles the case where getlocale() is (None, None)