proper hex printing when using the -x and -X flags