Fixed a bug related to irregular filenames.

The mail library encodes filenames with consecutive whitespace
such as 'a  b.txt' as 'a b.txt', which causes a null pointer
exception in Pony.add_attachments. This patch changes the
filenames used internally to match those in the mail library.