move encoding to Call()