Fixes #97: URIs with spaces are correctly rewritten