Specify encoding "raw" when writing files on the disk

Without this, binary files with UTF-8 environment are mangled.
Merge pull request #2 from melmothx/master

Specify encoding "raw" when writing files on the disk