Fixed TextWriter for text wrapping with the correct space index.