Imported new UTF-8 routines from my 1.1 tree.