html encode and pad em dashes in the title