Cleaned up conversion to R strings. Hopefully better handling edge cases like NaN and +/-Infinity