Update function char_xor(), now doesn't need to convert to hex to do XOR