Server: throw correct exception is service factory is not available

git-svn-id: https://svn.apache.org/repos/asf/chemistry/opencmis/trunk@1641643 13f79535-47bb-0310-9956-ffa450edef68
avoid generating invalid XML if a string contains a control charcter

git-svn-id: https://svn.apache.org/repos/asf/chemistry/opencmis/trunk@1641644 13f79535-47bb-0310-9956-ffa450edef68