return encode(value, getDefaultCharset());
try { return encodeText(value, charset); } catch (UnsupportedEncodingException e) { throw new EncoderException(e.getMessage()); }
    public String encode(String value) throws EncoderException {        if (value == null) {            return null;        }        return encode(value, getDefaultCharset());    }