text.hpp: remove the dependency on ucd/ucd.h