How to fallback nicely from an Error Report


We are implementing a small application that requires parameters in the url.
When we try this adress in IE http://serverhost:8080/myapp?parameter1=test test&parameter2=test we ge an errorreport with the attached stack trace. The error is because IE dosent handle spaces like chrome.

My question:

Is it possible to redirect the user to an fallback UI with an nice message like:
Oopps, something when wrong. Please check your parameters.

Any suggestions?