Fix rawToHex > hexToRaw

had logic backwards