Client encoding in SQL API