storage: encode file names

RE: #292 
I think I saw an issue on gcloud-Python about that, and it was no. Object
names are more flexible than buckets, apparently.

On Friday, November 7, 2014, Ryan Seys <notifications@github.com> wrote:

> In test/storage/file.js:
>
> > @@ -111,6 +115,24 @@ describe('File', function() {
> >        }, /should have a name/);
> >      });
> >
> > +    it('should URI encode file names', function(done) {
> > +      var newFile = new File(bucket, 'nested/file.jpg');
> > +
> > +      var expectedPath =
> > +        util.format('/o/{srcName}/copyTo/b/{destBucket}/o/{destName}', {
> > +          srcName: encodeURIComponent(directoryFile.name),
> > +          destBucket: file.bucket.name,
>
> I know it's not related to the issue, but should we be encoding the bucket
> name?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/GoogleCloudPlatform/gcloud-node/pull/293/files#r20043522>
> .
>