open files binary when reading attachments
Merge pull request #1 from pasvd/patch-1

open files binary when reading attachments