final cleanup and setup for utf8