Update Client.php

You have 2 json_encode in client first in _requestFactory method and second in the __call, on second method call json_encode escape json string.