title: Python requests invalid header value
body: <p>I have exported a cookies.txt file from firefox using a cookie export addon. Im trying to use the cookie file with python requests but getting this...</p>
  
  <blockquote>
    <p>ValueError: Invalid header value</p>
  </blockquote>
  
  <p>My code:</p>
  
  <pre><code>import requests
  cj = cookielib.MozillaCookieJar()
  cj.load('cookies.txt', ignore_discard=True)
  r = requests.get('blah.com', cookies=cj)
  </code></pre>
  
  <p>What can I do?</p>