Pre-truncate fields to avoid infinite loops.

Fixes #1.

It INSERTs and then SELECTs that, but if the field is truncated the
SELECT will never match.
Increase the formatted message max length.