part of issue 18, preg escape searched terms to allow searching strings with [({ in them