Escape error messages
Merge pull request #10670 from owncloud/encodeExceptions

Escape error messages