Catch branches with /'s in their name as that's not a valid filename