xhttp_rpc: fix arg parsing