encodes