Fix issue with hostname having a digit at end.

I was finally able to reproduce this after sleeping on it. Here are some additional tests that
will fail under the original conditions.
Merge pull request #6 from johnbellone/patch-1

Parsing fails when providing port with hostname.