Use filename instead of already opened file descriptor when calling Z… …
…ipFile This should fix #25251