Enthalpy method for ablation-type moving boundary problems