(refs #3673, BP from #3220) modified to use the rawurlencode.