Fixes #391. No longer passing URI as parameter to resource (which results in the URI being URL-encoded ...).