Now allow for path parameters, normalization and/or encoding.
Essentially, keep extending the candidate path up to the next slash
until the decoded and normalized candidate path (with the path
parameters removed) is the same as the canonical path.