Only wrap balanced DOM subtrees in <span>..</span> for char diffs