Passing colons in query string in Apex
===

Basically, I have a link in an apex report which takes the user to different page, and it passes some values to the new page. The button is set to a url because there are too many items being passed, but I don't think that would matter anyways:

    f?p=&APP_ID.:27:&SESSION.::&DEBUG.::P27_1,P27_2,P27_3,P27_4,P27_5:0,#1#,#2#,#3#,#NULL#

The #1#, etc. are columns being passed. Everything seems to work correctly except that the data being passed often has a colon (:) in it, so it messes up Apex's built in colon structure and cuts off anything in the new page's item that happens after the colon (including the colon itself) as well as messing up any fields after that. (example: #2# has a colon in it, so P27_3, 4, and 5 will not be filled with values). I've tried manually replacing the colon with a '%3a' (the url encoding for colon), but it doesn't seem to work. 

Thanks in advance for any help!