SocketIO: Better handle queries when building the session url

While using the android-websockets library, I found an issue using query parameters in the SocketIOClient connection url. More information can be found here:

    https://github.com/koush/android-websockets/pull/30

Since that library was ported from AndroidAsync, the changes fix the same issue in this library.