Fix content id generation.

This ensures that content ids are always URL encoded when loaded
through the dossier.store.run CLI program.