Fix binary subtype encoding.