Whenever any person is hereafter convicted of any crime within this state and has served any time in jail prior to sentencing because of being denied or unable to furnish bond for the offense of which he is convicted, the trial court in imposing sentence shall specifically grant credit against the sentence for such time served in jail prior to sentencing.