Fix problems with '#' in branchname
Fix problems with '#' in branchname

Add proper escaping of '#' in branchname in compare when doing pull
requests. This addresses issue #2822.

kong36088/SCAUGogits,dancewing/gogs,wangjild/gogs,Bwko/gitea,denji/gitea_tmp,odinuge/gogs,psaavedra/gogs,vCaesar/gitea,kubatyszko/gitea,typeless/gitea,psolyca/gitea,Bwko/gitea,sapk-fork/gitea,tboerger/gitea,mukaiu/gogs,mark77z/tt2016,lunny/gitea,avelino/gitea,admik/gitea,jorgesumle/gitea,jvanderneutstulen/gogs,sapk-fork/gitea,go-gitea/gitea,cez81/gitea,gigforks/gogs,liliexuan/gogs,avelino/gitea,tszym/gogs,gogits/gogs,mukaiu/gogs,lunny/gitea,kjellkvinge/gitea,mpindado/gogs,psolyca/gitea,psaavedra/gogs,typeless/gitea,gigforks/gogs,vdbt/gitea,Spice-King/gogs,0rax/gogs,CaeruleusAqua/gitea,spacetourist/gitea,kubatyszko/gitea,dnmgns/gitea,puffybsd/gitea,odinuge/gogs,xaionaro/gogs,rems4e/gitea,sapk/gogs,mjwwit/gitea,minecrafter/gitea,AndreaGiardini/gogs,mpindado/gogs,dlob/gogs,denji/gitea,kong36088/SCAUGogits,AndreaGiardini/gogs,bygreencn/gogs,kjellkvinge/gitea,mjwwit/gitea,sapk/gogs,tszym/gogs,dlob/gogs,mark77z/tt2016,kong36088/SCAUGogits,0rax/gogs,gigforks/gogs,avelino/gitea,JonasFranzDEV/gitea,lafriks/gitea,tboerger/gitea,ethantkoenig/gitea,denji/gitea_tmp,ForxaCoLab/forxa,dancewing/gogs,linquize/gogs,tony/gogs,chriswatt/gogs,bkcsoft/gogs,bygreencn/gogs,typeless/gitea,tony/gogs,sapk-fork/gitea,xaionaro/gogs,cez81/gitea,wangjild/gogs,JonasFranzDEV/gitea,lunny/gitea,jvanderneutstulen/gogs,CaeruleusAqua/gitea,rems4e/gitea,go-gitea/gitea,cumgun/gitea,tszym/gogs,lafriks/gitea,bkcsoft/gogs,wangjild/gogs,manfer/gogs,ForxaCoLab/forxa,jvanderneutstulen/gogs,strk/gogs,willemvd/gitea,cgars/gogs,psaavedra/gogs,AndreaGiardini/gogs,xaionaro/gogs,pikacloud/pikacode,richmahn/gogs,everhopingandwaiting/gogs,denji/gitea_tmp,Morlinest/gitea,Spice-King/gogs,lafriks/gitea,sapk-fork/gitea,chriswatt/gogs,dnmgns/gitea,gigforks/gogs,xormplus/gitea,ethantkoenig/gogs,Spice-King/gogs,spacetourist/gitea,dancewing/gogs,tony/gogs,sapk/gogs,mpindado/gogs,liliexuan/gogs,Bwko/gitea,dnmgns/gitea,geek1011/gitea,kjellkvinge/gitea,ethantkoenig/gitea,manfer/gogs,ForxaCoLab/forxa,gogits/gogs,linquize/gogs,ethantkoenig/gogs,andreynering/gitea,avelino/gitea,chriswatt/gogs,pikacloud/pikacode,cybe/gitea,liliexuan/gogs,tanapoln/gogs,strk/gogs,mark77z/tt2016,dl5rcw/gitea,Morlinest/gitea,everhopingandwaiting/gogs,dancewing/gogs,vdbt/gitea,bkcsoft/gogs,mukaiu/gogs,cumgun/gitea,strk/gogs,go-gitea/gitea,vCaesar/gitea,typeless/gitea,kubatyszko/gitea,tanapoln/gogs,andreynering/gitea,DblK/gitea,0rax/gogs,denji/gitea_tmp,cez81/gitea,0rax/gogs,odinuge/gogs,jorgesumle/gitea,gogits/gogs,pikacloud/pikacode,DblK/gitea,manfer/gogs,cgars/gogs,geek1011/gitea,everhopingandwaiting/gogs,dlob/gogs,linquize/gogs,everhopingandwaiting/gogs,tanapoln/gogs,bygreencn/gogs,tboerger/gitea,cgars/gogs,makhov/gitea,richmahn/gogs,cybe/gitea