Symmetry invariance and center manifolds for dynamical systems