Fix broken bookmarklet if params have encoded linefeeds.
Closes #4994