Fix a Py3 compatability issue with WebTest > 1.3.1 < 2.0
Remove a hard-coded UTF-8 assumption.