adding php support and using dos2unix on other encodings.