Change QR code ops to use ArrayBuffer. Add new function to Utils to convert a string to arraybuffer.
Also rewrote QR code parsing to be more readable and actually error out properly.