Prevent double slashes because they're ugly. Use smaller test character for history.replaceState support detection.