Encoder support for random bytes