fix sharing update, add proper escaping
Merge pull request #9867 from owncloud/fix_sharing_update

fix sharing update, add proper escaping