Clean up base64 and wrapping.