Deal with Python2/3 differences - always dump bytes into output

We have to use u"" (or from __future__ import unicode_literals) in a python2/3 basecode or we'll have str/bytes in python2 vs unicode/str in python3...