fixing UnicodeDecodeError