Fix for GitHub issues #44 where "localhost" was incorrectly being identified as a path component.