internal/chunked: NewReader and NewWriter