cleaner handling of utf8 in histograms