Fixed a bug that caused a UnicodeDecode error to occur