very clunky way to suppress encoding warnings when importing files, to work around Yosemite issue