Properly string encode floats