Fixed regression introduced in #12 and added testcase for it.
Merge pull request #13 from dainnilsson/fix_regression_urlparse_2.6

Fixed regression introduced in #12 and added testcase for it.