That's one of the better ones. I'd make minor changes:
A jailer informs his prisoner, "Your wife has come to see you."
The prisoner asks, "What's her name?"
The jailer says, "You're telling me you don't know your own wife's name?"
The prisoner shrugs and says, "I'm in here for bigamy."