Replace utf8proc with simpler string handling