Fix encoding parameter

`fs.readFile` 2nd parameter was an object with the property `encoding` while this methods expects just a string value.