fix base64: add terminating nullbyte