title: output issue when using ASCII convertion in Python 3.4.3
body: <p>I try to write the ASCII character out to a file base on the decoded input.</p>
  
  <pre><code>outfile = open ('output','w')
  </code></pre>
  
  <p>This one is working if using the constant value for chr()</p>
  
  <pre><code>c = chr(65)   &lt;&lt; work
  outfile.write(c)
  </code></pre>
  
  <p>However, this one is not working (note: i is an integer variable)</p>
  
  <pre><code>c = chr(i+65)  &lt;&lt; not work
  outfile.write(c)
  </code></pre>
  
  <p>It complains "UnicodeEncodeError: 'charmap' codec can't encode character '\x81' in position 0: character maps to "</p>
  
  <p>After the conversion from decimal to ASCII, chr(n), should it be the character already? 
  Why doesn't work?</p>