fix typo
fix typo
Use uri-encoded path and query parts of the uri

Fixes https://github.com/TooTallNate/Java-WebSocket/issues/247