title: writing unicode string to binary file in perl
body: <p>I have a string that contains charactures that are not UTF8, such as "עברית"
  I want to write the string to a file without encoding the string. To do so, I opened the file for writing as binary:</p>
  
  <pre><code>open my $fh, "&gt;&gt;:raw", "/tmp/bla";
  print $fh $mystring;
  close $fh;
  </code></pre>
  
  <p>The problem is that the file is corrupted. I open it in a binary view and some bytes are corrupted. 
  Am I doing something wrong? Is it not possible writing the string to a file without encoding it?</p>