tts/text_reader: fix detecting a word without a newline at the end of a file