fix encoding spec
fix float int conv bug