add tests for charset handling

The charset parameter was only tested in the dsn parser, add tests on the database (currently broken for fallback charsets)