URL encode needed values

To test upload a PDF file once with special characters (e.g. "This+Is+a+test.pdf") and one without (e.g. "ThisIsATest.pdf").

Then test the following test-cases:

- [ ] Viewing a PDF file as logged-in user still work
- [ ] Viewing a shared PDF as logged-in user still work
- [ ] Viewing a public shared PDF as logged-in user still work
- [ ] Viewing a public shared PDF as anonymous user still work
- [ ] Viewing a public shared PDF in a folder still work

Fixes #11
Fix indentation
Merge pull request #12 from owncloud/fix-11-1

URL encode needed values