Fixed PHP5.5 compatibility (deprecated preg_replace "/e" option)