Basically you return should be converted like this:
 Code:
For $i=0 to Len($AdReturnedByte)
  $s=$s+$comma+Right("0"+DecToHex(Asc(SubStr($AdReturnedByte,$i,1))),2)
  $comma = ","
Next