Adding encoding for utf-8 and fixing the yes/no fuctionality