Handle newlines in route params.
Merge pull request #3010 from braddunbar/newline

Handle newlines in route params.
Automatically rewritten for npm.