Move form.error serialization handling to custom JSONEncoder