Don't use intermediate strings in buffered io