Valency conversion in the type 1 fimbrial adhesin of Escherichia coli