Thanks primolarry, this fixed the utf8 problem for me but I needed to make an additional modification on the line (#691 after your modifications):

print output #.encode("utf-8")

Simply remove...