Using bytes rather than string, so the script can now deal properly
with non utf8 characters. IntegHistoryRebuild.py run with Python 3
will still fail when non utf8 characters are encountered. Use
Python 2.7 until I have figured out how to fix this issue.