Make mapping file parsing a little more resilient.