remove base64 dependency

Uses node's built-in base64 encoding for Buffer objects instead.