In Java 1.2 the java.net.URLDecoder class contains a single static method which decodes strings in x-www-form-url-encoded format:
java.net.URLDecoder
URLEncoder.decode(String s)