Added utf-8 argument to database connect to reflect database encoding.