Convert to File: Add encoding and Strip BOM options

Hi there!

We often use n8n to generate CSV files, and thus a final node for us is the “Convert to File” node, with the CSV option selected.

Problem: CSV files generated are always in UTF8 encoding with BOM header, and we can not control the file encoding and BOM byte presence/absence if UTF8 is selected.

Current workaround: We re-convert the file into text using the Extract From Text File node, strip the BOM there (there’s a dedicated option), and store the file directly.

Suggested solution: Add an Encoding parameter, as well as a Strip BOM parameter to the Convert to File node, as the Extract From Text File node already does.

Thanks a lot for your attention and consideration about our request!