Allow non-numeric branchId

Branch Ids are the name of the branch, which is typically not an id.
Change the parseInt function to be encodeURI.