Py3: Makes sure content_type is str.  Closes #378