Added write_url() option to generic write() method.