Encode messages utf-8