def _marshal(self): result = Record._marshal(self) changed = [] for col in result['changed']: col.value = self.fields[col.name].encode(col.value) changed.append(col) result['changed'] = tuple(changed) return result