title: cProfile saving data to file causes jumbles of characters
body: <p>I am using cProfile on a module named bot4CA.py so in the console I type: </p>
  
  <pre><code>python -m cProfile -o thing.txt bot4CA.py
  </code></pre>
  
  <p>After the module runs and exits, it creates a file named thing.txt and when I open it, there is some information there, and the rest is a jumble of characters instead of a neatly organized file of data which is what I want. Does any one know how to use cProfile and end up with neatly organized table of data like when using it normally on command line, except in a file?
  Here's an example of some of the data in the .txt file:</p>
  
  <pre><code>{(   s)   build\bdist.win32\egg\colorama\winterm.pyi'   t      reset_all(   i   i   gpàÂs% ?geOÙHÌœE?{(   s-   build\bdist.win32\egg\colorama\ansitowin32.pyi¥
  </code></pre>
  
  <p>What I really want is what happens when you invoke cProfile.run() which results in a neatly organized table printed showing the execution times of all the functions except instead of printed, saved in a file as this program is fairly large and runs a lot of functions.</p>