Fix for invalid hostname
Merge pull request #6 from Oefenweb/fix-for-invalid-hostname

Fix for invalid hostname