-- BUG FIXED: write table was not including last token of a string in case of diacritics.