transform_emails.pl: remove non-printable chars, only export text
portions of messages