Strip querystring in ODT write

* Resolve #1682
* Strip querystring from filename before rendering ODT files, ODT cannot
handle querystrings in files.
Merge pull request #1727 from toddsifleet/tws-fix-issue-1682

Strip querystring in ODT write