Don't pass non-finite values to grisu. (Fixes #206)