Added the unhex2() function.