Try adding encode onto output in quote to see if it fixes a potential encoding error.