title: pymysql issue 'NoneType' object has no attribute 'encode'
body: <p>Hi i'm trying to use pymysql. Here is the simpliest code</p>
  
  <pre><code>import pymysql
  conn = pymysql.connect(host='127.0.0.1', port=3306, user='root', passwd=None,
                         db='newbase')
  </code></pre>
  
  <p>and i'm getting error:
  'NoneType' object has no attribute 'encode'.
  i'm using easyphp5.3.6.0
  What should i do ?</p>