Implement our own -writeToURL:options:error: