Generalized FromByte and FromString