Encode the body in base64, as it is the default in python. Fix #84.