Auto remove trailing space on file writes.