Fix #1101: Query execution fails if user name has unicode characters
Fix #1101: Query execution fails if user name has unicode characters

- Encode the query with connection's charset when its type is unicode(not str).

pubnative/redash,pubnative/redash,pubnative/redash,pubnative/redash,pubnative/redash