Encode file data as utf-8 when passing to node