Ensure pragma checksum is prepended to generated file

Fixes #160
I don't know the implications of seeking but my gut reaction is that assuming utf8 is more reliable than assuming seekable isn't it?