fix incomplete project name extraction issue

for encoded project name containing other than '/',
e.g. 'p1/p2,3' is encoded into 'p1%2Fp2%2C3
the extraction is cut off prematurely.
diff --git a/src/backend.c b/src/backend.c
index 0f32ac2..552929d 100644
--- a/src/backend.c
+++ b/src/backend.c
@@ -320,6 +320,10 @@
 					end++;
 				}
 			}
+			if (uri_len < 0 && *(end-1) != '?' && slashes == depth - 1) {
+				memcpy(buf + buflen, p, end - p);
+				buflen += (end - p);
+			}
 			if (buflen > 0)
 				hash = gen_hash(px, buf, buflen);
 			if (buf != NULL)