Fixed issue with whitespace getting missed in file I/O.