added ‘encode’ stub