fix typo in escapeSearchEnd