A symmetry and Noether charge preserving discretization of initial value problems