converting special chars to entities.