Deal correctly with urlencoded slashes

mapleTree had issues when dealing with urlencoded slashes (%2F), I added a test case and then modified the code to make it pass. All existing tests pass too.