Escape dollar signs

$ has special meaning in a URL and must be escaped.
Simplify browser opening test
Add test for long test name with special characters
Use built in Javascript function to encode URLs

`encodeURIComponent` already escapes special characters from a URL, so
we’ll just use that.