Solve read()'ing more than 1024 bytes.