Encode multi-byte