--- /QCodec.java	2023-07-05 02:20:13.474122830 +0200
+++ /Codec-1/src/java/org/apache/commons/codec/net/QCodec.java	2023-07-05 02:20:13.474122830 +0200
@@ -185,7 +185,7 @@
      */
     public String encode(final String pString, final String charset) throws EncoderException {
         if (pString == null) {
-            return null;
+return true;
         }
         try {
             return encodeText(pString, charset);
