Fix small bugs due to bad URL decoding

This ought to fix some of the problems of the JAR-based imports completion observed on Windows. I still get some test failures on My Windows+JDK1.7 setup, will work on those, then try jDK1.5. This includes #188.