pub fn encoding() -> PositionEncoding
Read the negotiated encoding (falls back to UTF-16 if never set).