swap encoder/decoder
set byte order