Fixing session ID - encoding problem?