title: How to escape special characters in Groovy, excluding unicode
body: <p>I would like to escape all the special characters in a string except for unicode characters (\u), since I would still like to display non-English characters correctly. I am currently using the StringEscapeUtils.escapeJava() method, but have not found a way to exclude specific characters (\u for unicode, in this instance). The only alternative I can think of is to call replace or replaceAll for each special character except \u, which doesn't seem ideal. Is there a better way to do this?</p>
  
  <p>Ex:</p>
  
  <pre><code>"Los 
  niños"
  </code></pre>
  
  <p>should be converted to <code>"Los\nniños"</code> instead of <code>"Los\nni\u00F1os"</code> </p>