replace all text mentions of encode/encoded with sgd, rename package