Move get_email_charset to this module