Fixed #22849 -- Added Session.__str__()

You'll want to use `force_text` here.