Make deserialize respect given format