title: echo "string" > file in Windows PowerShell appends non-printable character to the file
body: <p><strong>In Windows PowerShell:</strong></p>
  
  <pre><code>echo "string" &gt; file.txt
  </code></pre>
  
  <p><strong>In Cygwin:</strong></p>
  
  <pre><code>$ cat file.txt
  :::s t r i n g
  
  $ dos2unix file.txt
  dos2unix: Skipping binary file file.txt
  </code></pre>
  
  <p>I want a simple "string" in the file. How do I do it?  I.e., when I say <code>cat file.txt</code> I need only "string" as output. I am echoing from Windows PowerShell and that cannot be changed.</p>