The sheriff of any county is empowered and directed to take an appeal bond in any case of a conviction of a misdemeanor before a justice of the peace of his county, and upon the prisoner or his attorney furnishing a valid appeal bond, and the sheriff taking and approving the same, he shall discharge the appellant from custody, turn over the bond to the circuit clerk and notify the justice of the peace that an appeal has been taken and direct him to send up all papers to the next term of the circuit court in the same manner as if the appeal bond had been filed with the justice from whose judgment the appeal was taken. Nothing in this section shall prevent a justice of the peace from accepting and receiving appeal bonds as provided by law, but the sheriff shall have power concurrent with the justice of the peace of their counties in all matters pertaining to the taking of appeal bonds in similar cases.