GUAC-621: Only increase buffer length if real character data was written (not cleared).