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