URL Encoding

Hi

I wondered if coldbox offered someway of dealing with special
characters in url variables...

I have a few custom routes set up, for example

        // Artist Home Page
  addRoute(pattern="artist/:name_art",
         handler="artist",
         action="home");

        // Artist Home Page
  addRoute(pattern="artist/:name_art/:name_record",
         handler="artist",
         action="record");

However my :name_art variable may sometimes contain special
characters, such as backslashes. These characters are effecting the
application, as it is presuming that I am calling the next level of
the application. For example, if my :name_art variable is 'GZA/Genius'
the application tries to call the artist.record method instead of the
artist.home method as intended.

What I would like to do is clean my variables so that special
characters are replaced across the application, at the moment I am
having to do this in every event handler and wondered if there was a
more cost effective way of achieving it.

Thanks