My guess would be that it was to convert a None to "" for withOctetString, which shouldn't be necessary now. I think I could (should) also remove it for public_id: I can't see what sensible non-string value this could or would take.