private static String quote(String s) {
        if (!requiresQuoting(s)) return s;
        StringBuilder sb = new StringBuilder();
        sb.append(QUOTE);
        for (int i = 0; i < s.length(); i++) {
            if (unescapedQuoteAt(i, s)) {
                sb.append(ESCAPE_C);
            }
            sb.append(s.charAt(i));
        }
        sb.append(QUOTE);
        return sb.toString();
    }
Parse an INI configuration from given input
vespajlib/src/main/java/com/yahoo/config/ini/Ini.java