Rework bufferevent read code
Correct strlen argument; from sthen via florian