Translate tabs to spaces, ensure newline before EOF