Removal of prisoners pursuant to Section 47-3-7 may be to some place in the county, or to the jail of another county. The jailer of such other county shall receive the prisoners and keep them safely, and surrender them when called for by the authority of the sheriff of the county from which they were removed. All the expenses of any such removal of prisoners and their imprisonment anywhere else, shall be borne by the county chargeable with the expense of imprisonment and trial of prisoners.