Binary and octet stream encodings