refactor glue/cvtutf.cpp