Error if Export filename contains an apostrophe

The error message lead you to the right conclusion: the filename of the report script is scriptable, like any other formatstring in Mp3tag.
The apostrophe character is a reserved character in Mp3tag and is used to delimit a string of characters.
If you want to see the true apostrophe character, then you have to write it twice.
(bad) Bill's Output ==> (good) Bill''s Output
(bad) Bill's Output ==> (good) 'Bill''''s Output'

Example for MTE file ...

$filename($getEnv('USERPROFILE')'\Desktop\Export.Whatever.txt',UTF-8) $filename($getEnv('USERPROFILE')'\Desktop\Bill''''s Output.txt',UTF-8)

See also ...
/t/17013/1

DD.20160316.2142.CET