Fixed #857: Pattern delimiter is not passed to several preg_quote calls