Every sheriff is a conservator of the peace within his county, and shall cause all offenders against law, in his view, to enter into recognizance, with security, to keep the peace and to appear at the next term of the circuit court of the county, and to be committed to jail in case of failure to give the recognizance. The sheriff shall certify the recognizance to the clerk of the circuit court.