@Test
public void mustNotEmitNullByteForQuery() throws Exception {

    String evil = "http://www.devil.com/highway?destination=%00hell";
    String decoded = UrlDecoder.QUERY_INSTANCE.decode(evil, "UTF-8");
    assertEquals(-1, decoded.indexOf('\0'));
    assertEquals("http://www.devil.com/highway?destination=NULLhell", decoded);
}