Fix deprecated preg_replace /e modifier
http://tracker.modx.com/issues/10056
Finish hotfix-deprecated_preg_replace