Avoid error during upload of .msg file with attachment

This fixes issues #197.
Merge pull request #203 from brlogan/patch-12

Avoid error during upload of .msg file with attachment