Improve Sphere string serialization. Add unit test.