+1 on that.
I'm less worried about line wrap, but I'm attempting to develop a columnar sort plugin (similar to that in TextPad) and in my case the issue is Tabs. They only count as a single character, but display as multiples. So when I attempt to extract a column from a line with a tab, I get something different than expected (the regions have been thrown away by necessity at this point). See below for the effect. The first line has four spaces, the second and third have a single tab.