add tests for charset parameter on live connection

The charset parameter is only tested in the dsn parser.
Add tests on the database connection.
This is currently broken for fallback charsets.