title: What is the perl 6 equivalent of the Perl 5 command binmode(STDOUT, ':unix:encoding(utf8):crlf')?
body: <p>This is the program I am currently running with Perl 6 (Rakudo Star 2017.10 under Windows 7 x64, codepage chcp 65001)</p>
  
  <pre><code>use v6;
  say chr(300) x 3, chr(301), 'UVW';
  </code></pre>
  
  <p>I expect to have exactly one line of output:</p>
  
  <pre><code>ĬĬĬĭUVW
  </code></pre>
  
  <p>but I get a mysterious second line of output ('VW'):</p>
  
  <pre><code>ĬĬĬĭUVW
  VW
  </code></pre>
  
  <p>(By the way, when I redirect the output into a file, the problem goes away)</p>
  
  <p>So my question is as follows, how can I make Perl 6 to output exactly one line ? -- (unfortunately, redirecting the output into a file is not an option for me)</p>
  
  <p>Additional information:
  As can be seen in the old Stackoverflow question <a href="http://stackoverflow.com/questions/25585248">http://stackoverflow.com/questions/25585248</a>
  I had exactly the same problem with Perl 5.
  The solution in Perl 5 was to inject a command</p>
  
  <pre><code>binmode(STDOUT, ':unix:encoding(utf8):crlf');
  </code></pre>
  
  <p>So the question I have now is as follows:</p>
  
  <p>What is the Perl 6 equivalent of the Perl 5 command binmode(STDOUT, ':unix:encoding(utf8):crlf') ?</p>
  
  <p>Thanks in advance for your help.</p>