### Bug description

On Windows, when I convert a document to word using quarto 1.4.84, I get the following error:

![image](https://github.com/quarto-dev/quarto-cli/assets/1813121/6230f2d5-d768-4db2-96e6-42c960c3b523)

I don't get this error with quarto 1.3.353. 

I'm currently in the middle of trying to get a report out. Once I've finished the submission, I will come back to this issue and submit a reproducible example.

### Checklist

- [ ] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [ ] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
- [ ] Please provide the output of `quarto check` so we know which version of quarto and its dependencies you're running.
2023-05-23T17:39:44Z
kdheepak
bug question needs-repro stale
open
Word experienced an error trying to open the file
https://github.com/quarto-dev/quarto-cli/issues/5650