fixed unicode encoding for python3