Use TextUnmarshaler in REST handler