encode

Encodes the min, max ranges into a byte array