resource public \Bitrix\Main\IO\Path::validateFilename( string $filename );
Static method checks if file name is valid.