fixed Mojo::JSON to encode "inf" and "nan" values as strings