Fixes bug 850966 - Encode slashes in middleware URLs.
Merge pull request #316 from AdrianGaudebert/850966

Fixes bug 850966 - Encode slashes in middleware URLs.