check for FormData when serializing payload data
fix query string when already has "?" in there