Fix bug when analyzing text that isn't at all UTF-8