Engineering the specificity of trehalose phosphorylase as a general strategy for the production of glycosyl phosphates.