code: public static String escape(String raw) {
          checkNotNull(raw, "raw");
          String escaped = raw;
          escaped = escaped.replaceAll(UNESCAPED_WILDCARD_REGEX, WILDCARD_ESCAPE);
          escaped = escapeSeparators(escaped);
          return escaped;
      }
docs: Returns a string escaped so it will be interpreted literally by the matcher.  Specifically it converts all
  '|' and '*' characters to "\|" and "\*" respectively.