title: Swift String escaping when serializing to JSON using Codable
body: <p>I'm trying to serialize my object as following:</p>
  
  <pre><code>import Foundation
  
  struct User: Codable {
      let username: String
      let profileURL: String
  }
  
  let user = User(username: "John", profileURL: "http://google.com")
  
  let json = try? JSONEncoder().encode(user)
  
  if let data = json, let str = String(data: data, encoding: .utf8) {
      print(str)
  }
  </code></pre>
  
  <p>However on macOS I'm getting the following:</p>
  
  <pre><code>{"profileURL":"http:\/\/google.com","username":"John"}
  </code></pre>
  
  <p>(note escaped '/' character).</p>
  
  <p>While on Linux machines I'm getting:</p>
  
  <pre><code>{"username":"John","profileURL":"http://google.com"}
  </code></pre>
  
  <p>How can I make JSONEncoder return the unescaped?</p>
  
  <p>I need the string in JSON to be strictly unescaped. </p>