edit scan function for coinxu's not well formatted qr code