Change the 'miter' joint style behaviour a bit by placing a hard limit on how extruded the joint can become. This will stop cases where a stroke with sharp angles produce very long corners - ideally this would be resolved by supportting the 'bevel' joint style, but there are no plans for this, so this hybrid behaviour seems more appropriate for the time being.