throw "not supported" error when trying to use encoding/gob