[backend] BSRPC: fix uri encoding if there is no host part

This happens if called from BSHandoff (i.e. if there already is a socket).