fix sharing update, add proper escaping
Merge pull request #9892 from owncloud/fix_sharing_update_oc7

fix sharing update, add proper escaping (oc7 backport)