Update putn(): print "0x" if a number is hexadecimal