in reply to Problem with query string
The best approach is to fix whatever generates the input URLs to encode URIs correctly. If you have bad data, fix it. Don't blame the tool.