Fix url decoding

Fixes #5