Naive write_string for OSX