compact hex decode