Deal better with text strings of insane lengths.

We now only display the first 8192 pixels of the text, but that's
better than crashing.

Fixes #141.