made input and database to use utf8 encoding