ensure EncodedData always has encoding BINARY