url: CURL::GetWithoutUserDetails would return non encoded hostname

For rar/zip and similar with an expected url encoded path in their
hostnames, CURL::GetWithoutUserDetails would return an invalidly
formatted non encoded hostname.
apk: tag filesystem as having parent in hostname
uri: use of protocol tags to deduce if parent needs to be checked
Merge pull request #3065 from elupus/apk

Apk path fixes