Fix hhvm error by replacing preg_filter with preg_replace