Teach ObjectDatabase.CreateCommit() to cope with encoding