add a setCharset() function to email and use it to set charsets