Converting policy to bytes to do a valid b64encode

S3Connection.build_post_policy returns a string and in order to do a
base64-encode, we need it to be in bytes.