Fix 404 error when clicking the branch link on hipchat message

If the branch name includes special characters like '#', clicking the branch link on HipChat message results in the 404 page.
Can you please fix this issues?