making sure id is urlencoded when using updateDocument

Yesterday I tried to update existing elasticsearch document using Type class. Because all of my documents ids contain forward slashes elastica was throwing an exception and documents were not updated.

So when using:

(existing document)
$doc->getId() -> '/some/path'
$doc->getData() -> array(data here)

Then using
$type->updateDocument($doc);

Documents was not updated.


I have created a test and fix. Let me know if this is valid. Cheers

Mike
Why is this needed? I think this should be handled by the transport layer.