bridge: Allocate enough space for base64 data

Follow the GLib documentation guidelines for allocating enough
space for base64 encoded/decoded data.