fixed uri encoding of document_id