Modified WebSocketTransport.java to make it work with android

Changes taken from 
https://github.com/Gottox/socket.io-java-client/issues/60