Fix TypeError in libpq.PQconnectdb with unicode

Guarentees conninfo arguement for PQconnectdb c call is of type str
Prior to this, dsn could be of type unicode which raises a TypeError