Fixed an encoding error in mail.py