In all suits for the recovery of damages occasioned by the overflowing of water by the erection of a dam for a grist or saw mill or other waterworks of utility, the plaintiff, if successful, shall be entitled to full costs, unless the plaintiff's damages do not exceed five dollars ($5.00), in which case the plaintiff shall not recover more costs than damages.