Protect against collapsing slashes when part of protocol

Will not collapse slashes in the path for http:// or https://
This is common circumstance for the Thumbor project (https://github.com/globocom/thumbor)