Debarking by chemical treatment