making sure id is urlencoded when using updateDocument