@Test
public void dontStopOnNullByte() throws Exception {

    assertEquals("someone%27s%20badNULL%20url",
            UrlEncoder.FULL_PATH_INSTANCE.encode("someone's bad\0 url", CharEncoding.UTF_8));
}