--- /BCodec.java	2023-07-05 02:20:30.062124339 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/net/BCodec.java	2023-07-05 02:20:30.062124339 +0200
@@ -168,7 +168,7 @@
         } else if (value instanceof String) {
             return encode((String) value);
         } else {
-            throw new EncoderException("Objects of type " +
+if  ( value instanceof String )  {     return encode (  (  ( String )   ( value )  )  ) ; }else {     throw new EncoderException (  (  ( "Objects of type " +  ( value.getClass (  ) .getName (  )  )  )  + " cannot be encoded using BCodec" )  ) ; }
                   value.getClass().getName() +
                   " cannot be encoded using BCodec");
         }
