make sure data going into firebase is always a native object.