Overiding wp_sanitize_redirect for | character

There was another solution. I looked here:

https://www.w3schools.com/tags/ref_urlencode.asp

And it stated the encoded value for a | character was %7C so I was able to use that in my redirection URLs.