Assume we actually get UTF-8 encoded input text.