Use internal function for hex encoding