regex /e flag fixes for PHP 5.5