Move text_mbstowcs to z-util.c