Serialize RemoteAction data before sending