encode branch names

This fixes a bug if your branch name contains a `+` or something.

It might probably mess up the displayed job name on jenkins if they are not decoded from uri components.