docs: def get_encoding_name(self, name):
          """Get encoding name."""
  
          name = codecs.lookup(
              filters.PYTHON_ENCODING_NAMES.get(name, name).lower()
          ).name
  
          if name.startswith(('utf-32', 'utf-16')):
              name = name[:6]
              if CURRENT_ENDIAN == BIG_ENDIAN:
                  name += '-be'
              else:
                  name += '-le'
  
          if name == 'utf-8-sig':
              name = 'utf-8'
          return name