Use encoded string for server name

If string including special character for URL (e.g. /,?,#) or multibyte
character is given as server name, stapler cannot handle it correctly.

This patch provides encoded server name as url string.

And jelly has something wrong so fix it.

Fix for JENKINS-20291