Added file encoding/termination check to makefile