def METHOD_NAME(self, name):
    """locale -a might return the encoding in either lower or upper case.
    Passing through this function makes them uniform for comparisons."""
    for s, r in self.LOCALE_NORMALIZATION.items():
        name = name.replace(s, r)
    return name