Test that illegal characters in a REST API query parameter are handled properly (percent encoding is expected).