Any public officer who shall charge or take fees not allowed by law or for service not performed shall, on conviction or proof thereof, be dismissed from office.