merge the db change and encoding fix.
Merge pull request #10 from madimalo/master

you can merge the encoding fix now.