Add tests for Connection#setEncoding