Ensure encoded as bytes.