Improve API for UTF-16 strings.