Made QR code valid JSON. Fixes #2354