change encoding
removed encoding
use readFileSync with the proper arguments
user buffer.toString