convert reserved characters to html entities 