Conserved charges in the quantum simulation of integrable spin chains