Fix off by one URL parsing error