Issue #2368177 by nicola85: Truncate on words boundary