Update StreamConnection.php

the first method gives payload = 3 for chunk = $35 and Protocol error exception. but trim() function works
(on Ubuntu 13.04/HHVM)