use isbuffer

as in https://github.com/maxogden/websocket-stream/pull/6