Hardening the deserialize() function and the Input class.