fix uri encoding of identity and key/value params on rpc