Using od:
echo "[$(echo -n "hey" | od -An -tu1 | awk -v OFS=', ' '{$1=$1;print}')]"
will print
[104, 101, 121]