patch saving: sanitize