Thermo-chemical conversion of solid biofuels