Simpler implementation of BufferedFile, drops dependency to io-streams.