public static String encode(String toEncodeContent) {
        if (toEncodeContent == null) {
            return null;
        }
        return urlEncoder.encodeToString(toEncodeContent.getBytes());
    }
@param toEncodeContent the String to be encode
@return String after encode
src/main/java/spark/Base64.java