Strip extraneous newline at end of output.