diff --git a/src/helma/util/UrlEncoder.java b/src/helma/util/UrlEncoder.java
deleted file mode 100644
index 927f7671..00000000
--- a/src/helma/util/UrlEncoder.java
+++ /dev/null
@@ -1,126 +0,0 @@
-/*
- * @(#)URLEncoder.java 1.12 98/07/01
- *
- * Copyright 1995-1998 by Sun Microsystems, Inc.,
- * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
- * All rights reserved.
- *
- * This software is the confidential and proprietary information
- * of Sun Microsystems, Inc. ("Confidential Information"). You
- * shall not disclose such Confidential Information and shall use
- * it only in accordance with the terms of the license agreement
- * you entered into with Sun.
- */
-
-// Repackaged by Hannes Wallnoefer because this is the only way to
-// encode space as %20 (no, subclassing doesn't work here).
-
-package helma.util;
-
-import java.io.ByteArrayOutputStream;
-import java.io.OutputStreamWriter;
-import java.io.IOException;
-import java.util.BitSet;
-
-/**
- * The class contains a utility method for converting a
- * String
into a MIME format called
- * "x-www-form-urlencoded
" format.
- *
- * To convert a String
, each character is examined in turn:
- *
a
' through 'z
',
- * 'A
' through 'Z
', and '0
'
- * through '9
' remain the same.
- * %xy
", where xy is the two-digit
- * hexadecimal representation of the lower 8-bits of the character.
- * x-www-form-urlencoded
format.
- *
- * @param s String
to be translated.
- * @return the translated String
.
- * @since JDK1.0
- */
- public static String encode(String s) {
- int maxBytesPerChar = 10;
- ByteArrayOutputStream out = new ByteArrayOutputStream(s.length());
- ByteArrayOutputStream buf = new ByteArrayOutputStream(maxBytesPerChar);
- OutputStreamWriter writer = new OutputStreamWriter(buf);
-
- for (int i = 0; i < s.length(); i++) {
- int c = (int)s.charAt(i);
- if (dontNeedEncoding.get(c)) {
- if (c == ' ') {
- c = '+';
- }
- out.write(c);
- } else {
- // convert to external encoding before hex conversion
- try {
- writer.write(c);
- writer.flush();
- } catch(IOException e) {
- buf.reset();
- continue;
- }
- byte[] ba = buf.toByteArray();
- for (int j = 0; j < ba.length; j++) {
- out.write('%');
- char ch = Character.forDigit((ba[j] >> 4) & 0xF, 16);
- // converting to use uppercase letter as part of
- // the hex value if ch is a letter.
- if (Character.isLetter(ch)) {
- ch -= caseDiff;
- }
- out.write(ch);
- ch = Character.forDigit(ba[j] & 0xF, 16);
- if (Character.isLetter(ch)) {
- ch -= caseDiff;
- }
- out.write(ch);
- }
- buf.reset();
- }
- }
-
- return out.toString();
- }
-}