QRCode encode and decode