Fixed issue with input files having special characters in them