Fix preg_replace with /e not to segfault