A symplectic structure for string theory on integrable backgrounds