Fixing #157 - preg_replace() with /e modifier under PHP 5.5 is deprecated