Include charset in connection config

Discussion on issue #6