minor revisions UTF8 related bugs