Fix double encoding of changeid.

If the project name contains a '/', then the REST api call
will double encode the / with %252f.

The REST API will then 404 for unknown project

Change-Id: I09d116f767fc5f673db6dae71e5030a131d134e7
diff --git a/src/main/java/com/googlesource/gerrit/plugins/zuul/client/LabelPanel.java b/src/main/java/com/googlesource/gerrit/plugins/zuul/client/LabelPanel.java
index 6882003..6e49ee9 100644
--- a/src/main/java/com/googlesource/gerrit/plugins/zuul/client/LabelPanel.java
+++ b/src/main/java/com/googlesource/gerrit/plugins/zuul/client/LabelPanel.java
@@ -20,6 +20,7 @@
 import com.google.gerrit.plugin.client.Plugin;
 import com.google.gerrit.plugin.client.extension.Panel;
 import com.google.gerrit.plugin.client.rpc.RestApi;
+import com.google.gwt.http.client.URL;
 import com.google.gwt.user.client.rpc.AsyncCallback;
 import com.google.gwt.user.client.ui.Grid;
 import com.google.gwt.user.client.ui.HorizontalPanel;
@@ -45,7 +46,8 @@
         panel.getObject(GerritUiExtensionPoint.Key.REVISION_INFO).cast();
 
     if (!rev.isEdit()) {
-      new RestApi("changes").id(change.id()).view("revisions").id(rev.id())
+      String decodedChangeId = URL.decodePathSegment(change.id());
+      new RestApi("changes").id(decodedChangeId).view("revisions").id(rev.id())
           .view(Plugin.get().getPluginName(), "crd")
           .get(new AsyncCallback<DependencyInfo>() {
             @Override