(#2651) - allow % in doc IDs

Unless someone can explain why that `decodeURIComponent` is there, we seem to be better off without it.