Fix GTID encoding/decoding.