Update string.c

Move it to `ts_bin2hex()`