Implemented Buffer base64 encoding/decoding.