Truncate the window text if it is too large for the request buffer.