Typo.
Adds test for binary/tgz data, and fixes reads/writes for it.