add rudimetary checks for serialized-ish string