Escape language codes before matching them in case they contain