getEncodingName = enc => {
  const { encoding, isBom } = enc
  let str = ENCODING_NAME_MAP[encoding] || encoding
  if (isBom) {
    str += ' with BOM'
  }
  return str
}
Try to translate the encoding.

@param {Encoding} enc The encoding object.