Switching streams to write in ascii to improve performance