Encode BinaryAnnotations