Fix the writing of checksums to disk.

Resolves #1144.