Fixed bug in email bot with encodings

mitchb found a bug where we trust the encodings too much coming from
email headers. (notably "x-unknown" is not an actual encoding)
Match the encodings against known encoding aliases. If there isn't
an encoding we support, just try ascii. Also catch when decoding
fails.