improved setext-style header insertion when text includes wide characters