Fix url parsing when there are two slashes