anchor.diff:          <%
               if ("outages".equals(mode)) {
           %>
  -        <a href="<%=request.getRequestURI()%>?mode=alarms&heatmap=<%=heatmap%>&category=<%=category%>&foreignSource=<%=foreignSource%>&monitoredService=<%=monitoredService%>">Alarms</a> / <b>Outages</b>
  +        <a href="<%=request.getRequestURI()%>?mode=alarms&heatmap=<%=Util.encode(heatmap)%>&category=<%=category==null?"":Util.encode(category)%>&foreignSource=<%=foreignSource==null?"":Util.encode(foreignSource)%>&monitoredService=<%=monitoredService==null?"":Util.encode(monitoredService)%>">Alarms</a> / <b>Outages</b>
           <%
               } else {
           %>
  -        <b>Alarms</b> / <a href="<%=request.getRequestURI()%>?mode=outages&heatmap=<%=heatmap%>&category=<%=category%>&foreignSource=<%=foreignSource%>&monitoredService=<%=monitoredService%>">Outages</a>
  +        <b>Alarms</b> / <a href="<%=request.getRequestURI()%>?mode=outages&heatmap=<%=Util.encode(heatmap)%>&category=<%=category==null?"":Util.encode(category)%>&foreignSource=<%=foreignSource==null?"":Util.encode(foreignSource)%>&monitoredService=<%=monitoredService==null?"":Util.encode(monitoredService)%>">Outages</a>
           <%
               }
           %>
  
positive.code:         }
      }
  
      url += mode + "/" + heatmap + "/";
  
      if ("nodesByForeignSource".equals(heatmap)) {
          foreignSource = request.getParameter("foreignSource");
          url += foreignSource;
          title += " (Nodes by ForeignSource '" + foreignSource + "')";
      }
  
      if ("nodesByCategory".equals(heatmap)) {
          category = request.getParameter("category");
          url += category;
          title += " (Nodes by Category '" + category + "')";
      }
  
      if ("nodesByMonitoredService".equals(heatmap)) {
          monitoredService = request.getParameter("monitoredService");
          url += monitoredService;
          title += " (Nodes by Service '" +monitoredService + "')";
      }
  
  
negative.code:         <%
              if ("foreignSources".equals(heatmap) || "nodesByForeignSource".equals(heatmap)) {
          %>
          <a href="<%=request.getRequestURI()%>?mode=<%=Util.encode(mode)%>&heatmap=categories">Categories</a> / <b>Foreign Sources</b> / <a href="<%=request.getRequestURI()%>?mode=<%=Util.encode(mode)%>&heatmap=monitoredServices">Services</a>
          <%
              } else {
                  if ("categories".equals(heatmap) ||"nodesByCategory".equals(heatmap)) {
          %>
          <b>Categories</b> / <a href="<%=request.getRequestURI()%>?mode=<%=Util.encode(mode)%>&heatmap=foreignSources">Foreign Sources</a> / <a href="<%=request.getRequestURI()%>?mode=<%=Util.encode(mode)%>&heatmap=monitoredServices">Services</a>
          <%
                  } else {
          %>
          <a href="<%=request.getRequestURI()%>?mode=<%=Util.encode(mode)%>&heatmap=categories">Categories</a> / <a href="<%=request.getRequestURI()%>?mode=<%=Util.encode(mode)%>&heatmap=foreignSources">Foreign Sources</a> / <b>Services</b>
          <%
                  }
              }
  