Specify encoding "raw" when writing files on the disk

Without this, binary files with UTF-8 environment are mangled.