Converted test to Groovy using Spock, parameterized URI decoding test

This is that thing that was brought up in #982 .