Move some code from util.c to util2.c and add sum_as_hex().