fixed unicode decode problem when printing exception

Change-Id: I2e95aa94077fe1022cb0e83581f13fc91a38c034