Fix a few remaining cases in session.py where .encode() was being called for bytes.
Clean up handling of strings vs bytes a little bit.
Fix file modes
Bump version to 0.7.2 and update changelog
Merge branch 'release/0.7.2'