Brewer's: Bess o' Bedlam
A female lunatic vagrant. Bedlam is a common name for a madhouse, and Bess is a national name for a woman, especially of the lower order. The male lunatic is a Tom o' Bedlam.
Source: Dictionary of Phrase and Fable, E. Cobham Brewer, 1894