[BUGFIX] Catch Exception with files and umlauts in file

Resolves: #48026
Change-Id: Ie74c2c6752d3b82595b3c0be343e5c3b78816b25
Reviewed-on: https://review.typo3.org/27305
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer