Update use of Buffer to work with versions above node v0.8