Use decoded URI when removing subpath (which clout already decoded) to
ensure that the correct number of characters are removed to build the context.