Fixed the path to the file being encoded