title: Python : UnicodeEncodeError when I use grep
body: <p>I am using a simple python script to get reservation results for my CID :
  <strong><code>simple.py</code></strong>:</p>
  
  <pre><code>data = {"minorRev":"current minorRev #","cid":"xxx","apiKey":"xxx","customerIpAddress":"  ","creationDateStart":"03/31/2013","}
  
  url = 'http://someservice/services/rs/'                      
  req = requests.get(url,params=data)                        
  print req                                                                 
  print req.text                                                                
  print req.status_code
  </code></pre>
  
  <p>Now on the command prompt if I do <code>python simple.py</code> it runs perfectly and prints the <code>req.text</code> variable</p>
  
  <p>However when I try to do     </p>
  
  <pre><code>python simple.py | grep pattern
  </code></pre>
  
  <p>I get   </p>
  
  <pre><code>UnicodeEncodeError: 'ascii' codec can't encode character u'\xe4' in position 1314: ordinal not in range(128)
  </code></pre>