[BUGFIX] Fix return type annotation in ResourceStorage::sanitizeFileName()