Fix URI component to correctly retrieve VC statistics

Change-Id: Ibb03789fbb578831b1af7be95ad956a0d0c706c0
diff --git a/dev/js/src/view/corpstatv.js b/dev/js/src/view/corpstatv.js
index 457f5bf..9622a5e 100644
--- a/dev/js/src/view/corpstatv.js
+++ b/dev/js/src/view/corpstatv.js
@@ -39,7 +39,7 @@
        // cq = corpusQuery
       var cq;
 
-      cq = encodeURI(vc.toQuery());
+      cq = encodeURIComponent(vc.toQuery());
       try {
         KorAP.API.getCorpStat(cq, function(statResponse) {
           if (statResponse === null) {
@@ -110,4 +110,4 @@
     },
 
   }
-});
\ No newline at end of file
+});