Handle ".", ".." and excessive "/" sequences in the query paths.