Hamiltonian Invariance of the Characteristic Set