fix unitialized variable warning
decode all URIs, fixes #937, 386