Fix string hexdecoding