Calculate tweet length with attachment correctly

This fixes #92.