.write() now always converts output to string