static void appendQueryStr(StringBuilder buf, string str) { for (int i=0; i<str.Length; ++i) { int c = str[i]; if (c < delimEscMap.Length && (delimEscMap[c] & QUERY) != 0) buf.Append('\\'); buf.Append((char)c); } }