setup: add explicit encoding when opening files