Fixed double decoding of url parameters.

Also added a new test_split_url_string test.