Check that signature and cert are strings before we do anything with them.