Initial encoding scheme seems to be working.  Need to decode first in order to make sure