#180 Encode id for addDocument getDocument to also support hash in id name