Add collation support for connection

I add collation support for set names command.
It is a simple patch. Can you aplly this to your repository?