Small change to the hdr snippet so it prints a windows-compatible path.
I thought I could do similar for the ods snippet, but it turns out I'm using the regex transform there to drop the filename from $TM_FILEPATH for the &out_folder variable.  So no can do (AFAIK).  Sad face.