Fixes #344: rewind the stream in AwsS3