A thioester hydrolase which acts on esters formed between thiols such as dithiothreitol or glutathione and the C-terminal glycine residue of ubiquitin.