Add "\" to delimiter for preg-quote (closes #3361)