Revert "Revert "Get writes without tailing newline.""

This reverts commit 9de96047ce5da6776d539685cb69778e01baf64c.