add getUtf8WordLen into str_functs.cpp