Revert "Strip trailing whitespace on write."

This reverts commit 39507d79d3d3c6747c40bf75db9a6a6281b36f31.