title: Writing raw bytes to a file in Python3 results in unexpected output
body: <p>So, I have this piece of code:</p>
  
  <pre><code>f = open("crash.txt", "w")
  junk = ("\xCC" * 1028)
  f.write(junk)
  f.close()
  </code></pre>
  
  <p>When I run this on Windows(3.5.1), I get a file with repeated "CC"s as hex characters. That is as expected.</p>
  
  <p>However, running this on Linux(Python 3.4.2), I get repeated "c38c"s as hex characters. </p>
  
  <p>I do not understand the output on Linux. Why does this happen and how do I fix it.  </p>