Motion text truncation redux

Fixes #305.

This is a rebased, completed version of #309.
This is truncating it as it's put into the database so it's probably best we do it as part of this PR.