added to_hex and from_hex to Utils

convert to and from hex strings