Originally this came from connect's utils... Which does not work in the browser. I'll swap out for node's.