Handle big attachments better

Using textwrap.wrap instead of .fill, and printing directly instead of
building a big string, dramatically improves the performance of large
attachments.