Add overload for file write mode to Attachment download

On Windows, this allows users to set the write mode
to 'wb' as this is required when writing binary files
like images or pdfs. The default value remains 'w'
so existing behaviors wouldn't change.
Merge pull request #9 from nickcanz/master

Add overload for file write mode to Attachment download