This could do with a tad more explanation to say that canonicalisation needs a path, so let's pretend it's a path. Then, once canonicalised, remove the leading slash to restore it to be closer to what the user entered.