Fixed some problem when raising Errors with unicode chars