fix text escaping