fix a parameter passed to u8erase at text_box.cpp
move UTF-8 functions to a separate namespace