Fix problem with Firefox. Needed proper URI encoding. Fixes #24