[1.7.x] Tweaked strip_tags tests to pass on Python 3.3

Backport of 6a0291bdaf from master.