def mime_encode_address string
    return string if string.ascii_only?
    string.sub(RE_ADDRESS) { |match| mime_encode($1) + $2 }
  end
def mime_encode_address string
    return string if string.ascii_only?
    string.sub(RE_ADDRESS) { |match| mime_encode($1) + $2 }
  end
Encode "bælammet mitt <user@example.com>" into
 "=?utf-8?q?b=C3=A6lammet_mitt?= <user@example.com>