Rewrote text truncation engine to include full support for unicode characters.