You need to use `html` and not `text` since file path can have some encoded characters for high-ascii and double-byte characters.