fix _flatten_to_ascii for str inputs
fix some shib signup session related bugs
Merge pull request #1081 from edx/jbau/shib-bugfixes

Jbau/shib bugfixes