Alter quote to get rid of InvalidByteSequenceError