url: use strings for port, eqeq for port check
Merge pull request #693 from holic/fix-url-port

url: use strings for port, eqeq for port check