Fix malformed exception for invalid uris

Fixes https://github.com/balanced/balanced-php/issues/89

Requires updated RESTful https://github.com/matthewfl/restful/pull/3
Once the above PR has been merged, I can change the composer.lock to link to the appropriate package