deprecated preg_replace() /e modifier fix

PHP 5.x.x + fix