Fix code to escape shell meta-char in the file name and added related
test case