[ticket/12332] Fix displaying attachments with long file names

https://tracker.phpbb.com/browse/PHPBB3-12332

PHPBB3-12332