fixing handling of opening/closing quotes