detecting URIs with port (issue #178)