fix segmentation fault

for urls containing '~' right after first depth of path,
e.g. '/test~test'
1 file changed