fix browser button back/fwd with url-encoded document IDs