Now deals with spaces in filename correctly

It was not opening files that had spaces in the filename, now it should.

For example using "myfile 1.pdf" would not work on my iPad, now it should.

This is my first time ever doing anything with github, so I hope I did everything correctly.