html encode messages