title: django: rendering a variable with safe filter without unicode 'u' type designator
body: <p>I am trying to pass a dictionary to a django template. In the django view, the variable is initialized and passed as such:</p>
  
  <pre><code>foo = {'a':'b'}
  ...
  return render(request, 'template.html', {'foo': str(foo)}
  </code></pre>
  
  <p>In the template, I have</p>
  
  <pre><code>{{ foo|default:"{}"|safe}}
  </code></pre>
  
  <p>In case it's relevant, I have the above line in a jquery snippet. That snippet is failing because the dict is being rendered as </p>
  
  <pre><code>[{'a': u'b'}] 
  </code></pre>
  
  <p>instead of what I expect:</p>
  
  <pre><code>[{'a': 'b'}] 
  </code></pre>
  
  <p>It seems the safe filter is not removing the unicode u preceding the dict value 'b'. How do I do that?</p>