title: Cant encode ascii character u'\xe9'
body: <p>I am getting a message <code>'ascii' codec can't encode character u'\xe9'</code> when I am writing a string to my file, heres how I am writing my file</p>
  
  <pre><code>my_file = open(output_path, "w")
  my_file.write(output_string)
  my_file.close()
  </code></pre>
  
  <p>I have been searching and found answers like this <a href="https://stackoverflow.com/questions/19833440/unicodeencodeerror-ascii-codec-cant-encode-character-u-xe9-in-position-7">UnicodeEncodeError: &#39;ascii&#39; codec can&#39;t encode character u&#39;\xe9&#39; in position 7: ordinal not in range(128)</a> and the first one didn't work and then this one I'm confused why I am encoding data I want to be able to read</p>
  
  <pre><code>import io
  
  f = io.open(filename, 'w', encoding='utf8')
  </code></pre>
  
  <p>Thanks for the help</p>