Shouldn't there be a `new BufferedReader(reader)`? Same for the Writer below.