code: @Deprecated
      public static String encode(String s) {
  
          String str = null;
  
          try {
              str = encode(s, dfltEncName);
          } catch (UnsupportedEncodingException e) {
              // The system should always have the platform default
          }
  
          return str;
      }
docs: Translates a string into <code>x-www-form-urlencoded</code>
  format. This method uses the platform's default encoding
  as the encoding scheme to obtain the bytes for unsafe characters.
  
  @param   s   <code>String</code> to be translated.
  @deprecated The resulting string may vary depending on the platform's
  default encoding. Instead, use the encode(String,String)
  method to specify the encoding.
  @return  the translated <code>String</code>.