Simple synthesis of glycosylthiols and thioglycosides by rearrangement of O-glycosyl thionocarbamates.