Fixed encoding problem with SQLite