fixed bug in RestClient where the protocol had a slash removed