Encode URL before opening it

This fixes the bug where EIN cannot open notebooks with spaces in them.

I'm not sure if this is correct!
Merge pull request #2 from gcr/patch-2

Encode URL before opening it