introduce hex2chr() for converting two hexadecimal digits to a character