Making export_as_* work with new Google Spreadsheet. #84
Taken from @crm114 's branch.