handle the case that attribute values are encoded as strings