title: Mulesoft SFTP write .csv file encoded UTF-8 with BOM
body: <p>I have the requirement to store a csv file with the SFTP write processor from Mulesoft on an SFTP server.</p>
  <p>File format: CSV (comma as separator), UTF-8 with BOM</p>
  <p>In a &quot;transform message&quot; I transform the JSON payload into application / csv encoding = &quot;UTF-8&quot;</p>
  <p>That works great, the csv is then available on the SFTP server in utf-8 format.</p>
  <pre><code>%dw 2.0
  output application/csv encoding=&quot;UTF8&quot; 
  ---
  payload.data 
  </code></pre>
  <p>My problem is how can I attach the BOM to the file?</p>