A client of mine has a database with a great number of (MySQL) tables which may contain invalid UTF-8 data. Since this database is filled from very many different sources, it is not (yet) feasible to reliably stop invalidly coded data to enter the database.
Since some XML feeds are generated from this data, it is imperative that UTF-8 is obtained from the database. So, a small script was developed that regularly reads all tables and all text fields to check for correct UTF8ness and remove illegal characters when needed.
It would seem that such a script would be handy to have as a module. Would it make sense to generalize this into a module? And if so, what would be a good namespace for it? Or is there such a beast already and have we reinvented a wheel?