Fix array to string conversion in Exception