Allow to set db encoding
Merge pull request #35 from sathieu/db_encoding

Allow to set db encoding