Implementation of the W3C `saveAs()` interface.