Sanitized vcedit_write() (and related) code some more.