Reimplement getting part offsets to cope with url that has a encoded url in the path