fixed deprecated preg_replace /e on php 5.5