text-input: use canonical utf-8 sequence detection