QRCodeDetector().detectAndDecode(image) gives UnicodeDecodeError

I’m not sure if this is a bug or I’m doing something wrong. The encoded data is binary and ZBar handles it fine. Does QRCodeDetector only support ASCII strings?