Create files as binary files.

Nothing should change actually, but I find it dangerous to create
files of text type when they actually contain binary data.