fix host encode bug for rpc client, host={x,x,x,x} will cause a
gen_tcp:send failed