Fix URI::InvalidURIError when using Capybara::Session#current_path for u...

...rl with space