I agree that it's unfortunate. We could change ol.parser.GeoJSON.prototype.write to look like this:

```
ol.parser.GeoJSON.prototype.write = function(obj) {
  return JSON.stringify(this.encode(obj));
};
```

and expose/export ol.parser.GeoJSON.prototype.encode.