encode valid URLs in the QR code