empty host processing fixed.
duplicate code cleanup.
Merge pull request #7 from CERT-Polska/issue-#7

related to: https://github.com/CERT-Polska/hsn2-norm-url/issues/3