Oops, Python 2.7 doesn't have open(..., encoding=).