packer: Properly handle ? in URLs in cache keys

/cc @sit - Found another edge case