Serialize an array of bytes as a base64-string.