Implement trick to null terminate strings in directory without a copy