fix log output unicodedecode error bug.

when turns on verbose output, some files contains non-ascii characters, like chinese, it will raise some UnicodeDeocdeError. So, I fix this little problem by adding a method called smart_unicode, I think you may need.  best regards, :)