Fix UnicodeEncodeError on print