Chain `attr` to the line above and change `text()` in the above line to `html()` since file path can have encoded characters for high-ascii and double-byte characters.