TK-48 ambigous slash when building proxy URL

This patch allows me to create clean URLs when using TK proxy which are accepted by my service.

I cannot tell whether this is correct solution, it's just a proposal. I don't think there is a way to get rid of the ambigous slash without patching TK.