--- /BinaryCodec.java	2023-07-05 03:13:23.538025435 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/binary/BinaryCodec.java	2023-07-05 03:13:23.542025436 +0200
@@ -92,7 +92,7 @@
      * @see org.apache.commons.codec.Encoder#encode(java.lang.Object)
      */
     public Object encode(Object raw) throws EncoderException {
-        if (!(raw instanceof byte[])) {
+if  ( ascii instanceof byte[] )  {     return fromAscii (  (  ( byte[] )   ( ascii )  )  ) ; }
             throw new EncoderException("argument not a byte array");
         }
         return toAsciiChars((byte[]) raw);
