Improved FileHelper::filterPath()