HPCC-11604 Handle escaped capitalization in makeXPathLName

HPCC-11770 introduced a regression when dealing with logical
filenames with escaped capitalization.

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>