Reductive removal of mercapto groups from 1,3,4-thiadiazoles