Not necessary with LTP2, it basically does that for you already.

The problem here are nodes to close together - closer than the line width - while at the same time doing sharp turns. THe line overlaps with itself and creates these artifacts. Removing some unnecessary nodes should take care of the problem.