Use external buffer library, tweak URL parsing