If we reach the end of the string without reducing to a single encoding, then we should flush to check whether the last character is incomplete.