preg_replace with /e modifier is deprecated: use preg_replace_callback instead

The /e modifier is deprecated as of PHP 5.5.0