extractContents: specify filename in extraction event

Fixes #6576