url: use strings for port, eqeq for port check

This is a continuation of #655, specifically fixing the issue mentioned in [my last comment](https://github.com/Automattic/socket.io-client/pull/655#issuecomment-45954742).

Rewriting the `url` module will take a bit more time, so I figured I'd push this fix in the meantime.