I'm not a super fan of calling this `cleaned_data`. It was not immediately obvious to me why this needed to be encoded. I'd have no problem removing this, using `cas.data.encode('utf-8')` below in the view, with a comment explaining that it has to be `str` and not `unicode` because b64encode only works on bytes. The model itself doesn't really care about that part, IMHO.