Converts input to unicode before input to db.