Support modifying field values before encoding.