Fix when opening spreadsheet with space in filename

`URI::InvalidURIError` is raised when attempting to open a spreadsheet with spaces in the filepath. This is caused by the behaviour of the URI package. This is fixed by encoding the filepath with `URI.encode` before calling `URI.parse`.