# File lib/net/ldap/filter.rb, line 262
    def escape(string)
      string.gsub(ESCAPE_RE) { |char| "\\" + ESCAPES[char] }
    end