Define __str__ for BranchFormat, just return the format string with the trailing newline stripped. Override __str__ for BranchFormat4 because it doesn't have a format string. This fixes ugliness in the UI where people print branch._format, bzr check for one. Fixes bug #33453.