making sure id is urlencoded when using updateDocument
Merge pull request #734 from TroodoNmike/master

making sure id is urlencoded when using updateDocument