Serialize the str() of subject
Message sanity check: Strip trailing spaces from lines

Thunderbird 24.6.0 for Mac OS X has been observed to put a trailing
space after the first line in a multiline To: header.

Since this should not be illegal, we treat message texts as sane if they
are equal after stripping trailing spaces.