Fix for session ids with invalid characters in them
Merge pull request #240 from zero5100/master

master - Fix for session ids with invalid characters in them