AI2 presents the data to firebase like this: "\"0\"" in order to be able to return the data correctly to AI2 for text and lists. When you call back the data, you will just get 0.
If you really must write data to Firebase without these characters, then you can use the REST api and web component