Any chance you need to double up your /'s? I.e. first / is an escape character and second / is preserved.

Note how on output there is now single / after http.