Fix foat typo to float for encode_value