Work around deficiencies in nightly browsers

Fixes #6.
Properly encode and decode the URL fragment

Fixes #8.