Modified the session checking so that it relies on hexadecimal for the username instead.

Usernames can now be unicode, successfully tested with a Tamil name, Cyrillic and Arabic.