num2str(): Fix overflow handling