encoder: oops, uint16s are little-endian too