Fix issues with libvirt and bytes object.