Change the pipe to %7C in URLs

Fix #1126