Upgrade text-buffer to avoid many position translation errors

Refs #3192