serializing special float pointing values (ex. NaN)