fixed preg_replace eval problem with php >= 5.5
see http://www.php.net/manual/en/reference.pcre.pattern.modifiers.php#reference.pcre.pattern.modifiers.eval