Remove upcase from to_hex