Breaking: #105686 - Avoid obsolete $charset in sanitizeFileName()

See forge#105686

Description

Class \TYPO3\CMS\Core\Resource\Driver\DriverInterface :

public function sanitizeFileName(string $fileName, string $charset = ''): string
Copied!

has been simplified to:

public function sanitizeFileName(string $fileName): string
Copied!

Classes implementing the interface no longer need to take care of a second argument.

Impact

This most likely has little to no impact since the main API caller, the core class ResourceStorage never hands over the second argument. Default implementing class \TYPO3\CMS\Core\Resource\Driver\LocalDriver thus always fell back as if handling utf-8 strings.

Affected installations

Projects with instances implementing own FAL drivers using DriverInterface may be affected.

Migration

Implementing classes should drop support for the second argument. It does not collide with the interface if the second argument is kept, but core code will never call method sanitizeFileName() with handing over a value for a second argument.