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!