Improved support for unicode data and fixes for github issues 66, 68, 69.