Fixes improper encodings as in https://github.com/mikel/mail/issues/560