doc ids should be %xx quoted

Otherwise a `/` in the id creates an invalid url thus causing an `InvalidJsonResponseError` (`/` is perfectly valid in elasticsearch doc ids http://elasticsearch-users.115913.n3.nabble.com/Document-ID-conventions-td3432927.html).