simplify; only encode for bobo.redirect; separate documentation from test