Fix URL parsing

Fix #5

- Do no longer convert NSURL to absolute string to then parse it by hand
- Fix potential crash with query string parsing
- Convert + to spaces in querysting before decoding
- Refactor unit tests so asserts errors are correctly located