a simple way to convert char string to hexadecimal string