Truncate last post subject in forum lists using truncate_string()

This fixes some issues with truncating the subject in the middle of an
HTML entity by using roughly the same logic from phpBB 3.1.