Fixed exception if one calls encode on an email that has a invalid characters for destination encoding
in subject.