fixed checkbox and radio. correct counting of htmlencoded data