Fix UNHEX

Which was broken for the value 'a' (a la #526 deal with 'z' which is 7A).

Simplify the code, along with method renames for clarity.