PHP 5.5 preg_replace() /e modifier deprecated fix

Replace deprecated preg_replace() with /e with preg_replace_callback()