nbconvert: fixed latex characters not escaped properly in nbconvert