Implement TextMarshaler and TextUnmarshaler