Hardened input conversion