Fix branch name encoding issue (fit for OS which locale language is not UTF-8)