Add encode of bytes type