We figured it out, need to use /bset -tac to put the string in without utf8 conversion, then can use

sockudp -k test ipv4address port &binvarname