Use binary.write when writing checksum, for clarity