Aha! I went digging through the source code, which led me to a specific 
section of the documentation, and finally I found this:

Addressable::URI::CharacterClasses::UNRESERVED << '|'

Now it works.

-- 
Posted via http://www.ruby-forum.com/.