Bug 930882 - [messages] Sending mms with attachment filename over 40 chars will be failed with incorrect error message

Truncate MMS filenames at generation
* Filename, extension and potential marker (e.g. `_2`) all must fit inside 40 characters
* Add tests for truncation