The /e modifier for preg_replace() is deprecated in PHP 5.5; replace with preg_replace_callback()