Fixed a bug that caused the database engine to store UTF 8 encoded strings as ISO-8859-1.