Using binary numbers was choking the filters

There was a bug with actually writing the version number, whoops.

Regardless of that error, writing the binary data worked but the smudge
filter was choking on null characters.