(This would have been more correct even to begin with, so its not really part of the port, the port just highlights it. ``smart_text`` is definitely a change in behavior here, since ``str`` on Py2 is bytes, not text.)