Internal: explicitly set TextEncoding for connection handle