The demanding, collection or receiving of any compensation or fee by the officers mentioned in this chapter shall be deemed a misdemeanor.