Added test and fixed round trip read/write of ASCII