Renames the document.