html encode writed strings