remove NUL characters from files just loaded