Hydrothermal pretreatment