Pass configuration into connection for proper character set handling.