fix BasicURLCanonicalizer.normalizePath() to handle paths with trailing "/." or "/..", add tests