file: beginnings of refactor
file: decodeURIComponent() on the pathname before normalizing

So that URI-encoded chars are decoded.