Re-encode symbols into UTF-8, move "{}" escaping earlier to avoid unintentional double-escaping.