Would your code resolve an invalid path (too many "..") in the same manner of a real browser ? (I actually don't know what a browser would do)