This PR fixes how the jsonrpc parses the URL, and how the dial function connects to the RPC.
Closes: https://github.com/tendermint/tendermint/issues/6260
(cherry picked from commit 9ecfcc93a6)
Co-authored-by: Frojdi Dymylja <33157909+fdymylja@users.noreply.github.com>