Hmm this is odd -- I'm going to get my team to look into why this is automatically saving like this.
However, in the meantime, can you try to update the prompt to include these statements:
Save the File as an object, not a string
Do not include "<parameter name="fileName">"