Add 'b' to open the tmp-file in binary-write mode
Merge pull request #1381 from rockfruit/fix_setupdata_import_filemode

Add 'b' to open the tmp-file in binary-write mode