Fix host parsing for services other than S3