The createRequest call taking a string gets the encoding wrong, so use the Uri parameter option instead.
Also, VersionId in the ResourceIdentity fails when using a virtual directory