Fixed 'open' to write binary data in Windows too
Merge pull request #1 from ostefano/master

Fixed 'open' to write binary data in Windows too