fixes #1826: res.redirect('toString') fails with 500

Fixes #1826. Removed the unused map and corrected the doc comment. No tests because who cares about correctness anyway?