this fixes comparision of (e.g.) the Device property, on Qt6 where 'foo\0' is not equal to 'foo' anymore.