Make sure to url encode and decode branch names as they can contain non url safe characters. I'm looking at you /.