fix Decode() for rest api messages
gofmt