autodetect MySQL 5.5+ connection charset
Merge pull request #1116 from mind04/mysql-character-set

autodetect MySQL 5.5+ connection charset