I receive an improperly formatted unicode in a String
<p>I am working with a web API that gives me strings like the following:</p>

<pre><code>"Eat pok\u00e9."
</code></pre>

<p>Xcode complains that </p>

<blockquote>
  <p>Expected Hexadecimal code in braces after unicode escape</p>
</blockquote>

<p>My understanding is that it should be converted to <code>pok\u{00e9}</code>, but I do not know how to achieve this. </p>

<p>Can anybody point me in the right direction for me develop a way of converting these as there are many in this API?</p>

<p>Bonus:
I also need to remove <code>\n</code> from the strings.</p>