Support for writing other than Latin-1 shapefiles (#35).

Bug report and testing by @blackmad and @nvkelso.