'Convert the name to ``bytes``.
:return: ``VolumeName`` encoded as bytes that can be read by
``VolumeName.from_bytes``.'

def to_bytes(self):

    return ('%s.%s' % (self.namespace.encode('ascii'), self.dataset_id.encode('ascii')))
