The X-ray spectra of high-redshift quasars