This prevents silly errors from creeping in Python 2 when testing in Python 3
This happens only in Python 2, as in Python 3 we receive the "badline" in the exception is already properly encoded Fix #578
Fix #103