Added functions for manipulating with UTF-8 strings.