This version mimics the original output except for one linefeed and one
zero.   The latter is actually correct per the spec, but their
implementation omits it.