Pretreatments for converting wood into paper and chemicals