Added null terminator to file path