Black to white transition of a charged black hole