Fixed usage of deprecated preg_replace() /e flag.