class Mail::Utilities::BestEffortCharsetEncoder

def pick_encoding(charset)

def pick_encoding(charset)
  charset = case charset
  when /ansi_x3.110-1983/
    'ISO-8859-1'
  when /Windows-?1258/i # Windows-1258 is similar to 1252
    "Windows-1252"
  else
    charset
  end
  Mail::Utilities.pick_encoding(charset)
end