in reply to Re^2: TreeBuilder and encoding
in thread TreeBuilder and encoding

you're using content which is bytes, mech content is chars ie decoded_content

Mechanize is for you :)