Query String URI Errors

Troubleshoot and resolve InvalidArgumentException: Query string must not include a URI fragment errors.