Fixed unknown property: charset

When adding the option `createDatabase()` dumping failed due to `unknown property: charset`. It should look for `encoding` instead.