code: public static String encode(final String decoded) {
          try {
              return s_codec.encode(decoded);
          } catch (EncoderException e) {
              throw new IllegalStateException(Bundle.getErrorString("URLCodec_encodeException", new String[] {e.getMessage()}), e);
          }
      }
docs: URL encodes a string using the default character set
  @param decoded the string to encode
  @return the encoded string