Fix newline format in transaction heads

A recent commit incorrectly changed newlines to LF instead of CRLF. This fix
changes it back to CRLF while still addressing the issue the previous commit
intended to address which was to fix a bug in header output.