Catalyst::Plugin::Session::State::URI behaves weirdly when debugging is active, for example in the test-server. Steps to reproduce: either do - with the CPAN distribution do REWRITINGTESTAPP_DEBUG=1 make test or - with the test application included in the distribution, execute REWRITINGTESTAPP_DEBUG=1 perl -It/lib -Ilib -MCatalyst::ScriptRunner -e'Catalyst::ScriptRunner->run(q{RewritingTestApp}, q