It'd be nice to, in the tests on URLTests.java, use strings with non-ASCII characters (or special ones). That should answer your question. For example, instead of ("dummykey", "dummyvalue") using something like ("a key", "my <>&=?@ value")