Don't encode deprecated fields.