Fixed URL rewriting for URIs starting with a double //

come on travis!