fix bug for using '\' failing pdf generation
Merge pull request #166 from adrian-wang/master

fix bug for using '\' failing pdf generation