Fix unicode bug in exception.