Use an off-the-shelf UTF-8 santizer gem. Another attempt at the Heroku H12s.