Add ability to replace invalid sonar branch characters