Updated parameter to encode function to be consistent with the other calls

Hey there guys,

Just a tiny little touch-up for consistency.  'u8' and 'utf-8' mean the same thing but since I've used utf-8 everywhere else, it made sense to touch up this one oddity :smile: 

Cheers
Fotis