Fix inconsistent GTID encoding.