Test Encoder for bytes