Escape testId when constructing URL

The testId can contain anything include space or # (when using data providers), so these chars should be properly escaped.
Merge pull request #303 from nijel/patch-1

Escape testId when constructing URL