Fix creation of base64 data.