Replaced dos2unix call with call to local function sanitize_inputfile().

This makes it more generic and if more processing of input files is
needed, it will only need to be done in one place.