Bug 1059788 - Limit search term lengths to 100 characters.

I have no confidence in this patch, but I think this might possibly work.
Done.