issue #1024 add optional prefix to file names in exporttospreadsheet + tests