Make `toNerfDart` ignore `query`, `search`, `hash`

See the original discussion at: https://github.com/npm/npm-registry-client/pull/73 and the associated pull-request for npm: https://github.com/npm/npm/pull/6514